<template>
	<view class="themeItem">
		<navigator url="/pages/classlist/classlist" class="box" v-if="!isMore">
			<image src="../../static/logo.png" mode="" class="pic"></image>
			<view class="mask">
				明星美女

			</view>
			<view class="tab">
				3天前更新

			</view>
		</navigator>
		<navigator open-type="reLaunch" url="/pages/classify/classify" class="more box" v-else>
			<image src="../../static/logo.png" mode="" class="pic"></image>
			<view class="mask">
				<uni-icons type="more-filled" size="34"></uni-icons>
				<view class="text">
					更多

				</view>

			</view>



		</navigator>


	</view>
</template>

<script>
	export default {
		name: "theme-item",
		data() {
			return {


			};
		},
		props: {
			isMore: {
				type: Boolean,
				default: false

			}

		}

	}
</script>

<style lang="scss" scoped>
	.themeItem {
		.box {
			height: 340rpx;
			border-radius: 10rpx;
			overflow: hidden;
			position: relative;

			.pic {
				width: 100%;
				height: 100%;
			}

			.mask {
				width: 100%;
				height: 70rpx;
				position: absolute;
				bottom: 0;
				left: 0;
				background-color: rgba(0, 0, 0, .2);
				display: flex;
				align-items: center;
				justify-content: center;
				// 磨砂效果--滤镜
				backdrop-filter: blur(20rpx);
				font-weight: 600;
				font-size: 30rpx;
			}

			.tab {
				position: absolute;
				top: 0;
				left: 0;
				background-color: rgba(250, 129, 90, .7);
				backdrop-filter: blur(20rpx);
				font-size: 22rpx;
				padding: 6rpx 14rpx;
				border-radius: 0 0 20rpx 0;
				transform: scale(0.8);
				// 变换中心
				transform-origin: left top;
			}
		}

		.box.more {

			// 两个类都有的时候才会添加样式
			.mask {
				width: 100%;
				height: 100%;
				display: flex;
				flex-direction: column;

				.text {
					font-size: 28rpx;
				}
			}


		}
	}
</style>